<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>首页</h1>

    <script>
        function router(path){
            location.href = path
        }
    </script>

    <div style="display: flex;position: fixed; bottom: 0px; width: 100vw;height:100px ;">
        <div style="flex: 1;text-align: center;" onclick="router('./page-home.html')">首页</div>
        <div style="flex: 1;text-align: center;" onclick="router('./page-category.html')">分类</div>
        <div style="flex: 1;text-align: center;" onclick="router('./page-shoppingcart.html')">购物车</div>
        <div style="flex: 1;text-align: center;" onclick="router('./page-my.html')">我的</div>
    </div>
</body>
</html>